﻿@model LynxWiki.ViewModels.AttachmentViewData

@{
    ViewBag.Title = "ListVersions";
}

<h2>ListVersions</h2>
<div style="width: 100%; max-width:960px;">    
<table class="TableClass MaxWidth">
    <tr>
        <th class="TableCellHighlighted">File</th><th class="TableCellHighlighted">Size (bytes)</th><th class="TableCellHighlighted">Created On</th>
        <th class="TableCellHighlighted">WikiText Reference</th>
        @if (User.IsInRole("WikiAdmin")) {
            <th class="TableCellHighlighted">File Action</th>
        }
    </tr>
    @Html.DisplayFor(m => m.Files)
</table></div>
<br />
<div style="width: 100%; max-width:960px;">    
<table class="TableClass MaxWidth">
    <tr>
        <th class="TableCellHighlighted">Version</th><th class="TableCellHighlighted">Created On</th><th class="TableCellHighlighted">Creator</th>
        <th class="TableCellHighlighted">Check Out User</th><th class="TableCellHighlighted">Checked Out On</th>
            <th class="TableCellHighlighted">Checked In On</th><th class="TableCellHighlighted">Version Note</th>
    </tr>
    @Html.DisplayFor(m => m.Versions)
</table></div>
<br />
@Html.Label("Tags") <span>@foreach (string s in Model.Versions[Model.Versions.Count - 1].Tags) {
                              @: @s<br />
                          }
                    </span>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jqueryui")
@section Scripts {
    <script type="text/javascript" >
        $(document).ready(function () {
            $('#ErrorMsgDiv').hide();
            $('#slickbox_privs').hide();
            $('#slick-toggle_privs').click(function () {
                $('#slickbox_privs').toggle(400);
                return false;
            });
        });
    </script>
}